package com.jsbb.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 列表查询封装VO
 *
 * @author w
 * @date 2021-03-05
 */
@Data
public class PageVo<T> {

    @ApiModelProperty(value = "总记录数")
    private Integer count;

    @ApiModelProperty(value = "列表数据")
    private List<T> list;

    public PageVo() {
    }

    public PageVo(Integer count, List<T> list) {
        this.count = count;
        this.list = list;
    }
}
